package com.hualan.zhsq.entity.information;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 对应数据库表的实体类
 * 表结构相关字段映射
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class HouseRental implements Serializable {

    private static final long serialVersionUID = 1L;

    // 主键
    @TableId
    private Long id;

    // 租赁状态
    private Integer leaseStatus;

    // 租金
    private Double rentAmount;

    // 租赁方式(0:1)
    private Integer leaseType;

    // 入住时间
    private Date checkinTime;

    // 发布时间
    private Date publishTime;

    // 补充信息
    private String supplementInfo;

    // 有效期
    private Date expiryDate;

    // 房东id
    private Long landlordId;

    // 房屋id
    private Long houseId;

    // 备注
    private String remark;

    // 逻辑删除(0:未删除;1:已删除)
    @TableLogic
    private Integer del;


    /**
     * 多表联查
     */
    @TableField(exist = false)
    private ResidentInfo residentInfo;
    @TableField(exist = false)
    private HouseInfo houseInfo;
    @TableField(exist = false)
    private List<HouseFacility> facilityList;

}